package com.dubbo.provider.impl;


import com.dubbo.bean.User;
import com.dubbo.provider.UserService;
import com.dubbo.service.UserConService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

// 解耦了，！！我说的解耦是和 spring 解耦，原本spring 的代码还是spring的代码，没动，但是实现了新的功能，！！！
@Component
public class UserServiceImpl implements UserService {
    @Autowired
    private UserConService userConService;
    @Override
    public User getUser(Integer id) {
        return userConService.getUser(id);
    }
}
